﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="product.aspx.cs" Inherits="ss_product" %>

<%@ Register assembly="CKEditor.NET" namespace="CKEditor.NET" tagprefix="CKEditor" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
    <style type="text/css">
        .style1
        {
            width: 500px;
        }
        .style2
        {}
        .style3
        {
            width: 422px;
        }
        .style4
        {
            width: 114px;
        }
        .style5
        {
            width: 114px;
            height: 23px;
        }
        .style6
        {
            width: 422px;
            height: 23px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <table class="style1">
            <tr>
                <td colspan="2">
                <h2>Add Product</h2>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style4">
                    Pid:</td>
                <td class="style3">
                    <asp:TextBox ID="txtpid" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style4">
                    Pname:</td>
                <td class="style3">
                    <asp:TextBox ID="txtname" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style4">
                    Size:</td>
                <td class="style3">
                    <asp:TextBox ID="txtsize" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style4">
                    Color:</td>
                <td class="style3">
                    <asp:TextBox ID="txtcolor" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style4">
                    Price:</td>
                <td class="style3">
                    <asp:TextBox ID="txtprice" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style4">
                    Describe:</td>
                <td style="margin-left: 160px" class="style3">
                    <CKEditor:CKEditorControl ID="CKEditorControl1" runat="server" Height="252px" 
                        style="margin-left: 49px" Width="594px">
                    </CKEditor:CKEditorControl>
                </td>
            </tr>
            <tr>
                <td class="style4">
                    Cateid:</td>
                <td style="margin-left: 160px" class="style3">
                    <asp:DropDownList ID="ddlcateid" runat="server">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="style4">
                    Originid:</td>
                <td style="margin-left: 160px" class="style3">
                    <asp:DropDownList ID="ddloriginid" runat="server">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="style4">
                    Mid:</td>
                <td style="margin-left: 160px" class="style3">
                    <asp:DropDownList ID="ddlmid" runat="server">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="style4">
                    Description: </td>
                <td style="margin-left: 160px" class="style3">
                    <asp:TextBox ID="txtdescription" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style4">
                    Lang:</td>
                <td style="margin-left: 160px" class="style3">
                    <asp:DropDownList ID="ddllang" runat="server">
                        <asp:ListItem Value="tv">Tieng Viet</asp:ListItem>
                        <asp:ListItem Value="ta">Tieng Anh</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="style4">
                    Keyword:</td>
                <td style="margin-left: 160px" class="style3">
                    <asp:TextBox ID="txtkeyword" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style4">
                    Tag:</td>
                <td style="margin-left: 160px" class="style3">
                    <asp:TextBox ID="txttang" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style4">
                    Picture:</td>
                <td style="margin-left: 160px" class="style3">
                    <asp:FileUpload ID="fileuplaod1" runat="server" />
                </td>
            </tr>
            <tr>
                <td class="style4">
                    Status:</td>
                <td style="margin-left: 160px" class="style3">
                    <asp:TextBox ID="txtstatus" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style4">
                    Active:</td>
                <td style="margin-left: 160px" class="style3">
                    <asp:CheckBox ID="chkactive" runat="server" Text="Active" />
                </td>
            </tr>
            <tr>
                <td class="style5">
                    Check1</td>
                <td style="margin-left: 160px" class="style6">
                    <asp:CheckBox ID="CheckBox1" runat="server" Text="Check1" />
                </td>
            </tr>
            <tr>
                <td class="style5">
                    Check2:</td>
                <td style="margin-left: 160px" class="style6">
                    <asp:CheckBox ID="CheckBox2" runat="server" Text="Check2" />
                </td>
            </tr>
            <tr>
                <td class="style5">
                    Check3:</td>
                <td style="margin-left: 160px" class="style6">
                    <asp:CheckBox ID="CheckBox3" runat="server" Text="Check3" />
                </td>
            </tr>
            <tr>
                <td class="style5">
                    Check4:</td>
                <td style="margin-left: 160px" class="style6">
                    <asp:CheckBox ID="CheckBox4" runat="server" Text="Check4" />
                </td>
            </tr>
            <tr>
                <td class="style5">
                    Check5:</td>
                <td style="margin-left: 160px" class="style6">
                    <asp:CheckBox ID="CheckBox5" runat="server" Text="Check5" />
                </td>
            </tr>
            <tr align=center>
                <td class="style2" colspan="2">
                    <asp:Button ID="btnsave" runat="server" Text="Save" Width="85px" 
                        onclick="btnsave_Click" />
                </td>
            </tr>
            <tr align=center>
                <td class="style2" colspan="2">
                    <asp:Label ID="lblerror" runat="server" ForeColor="Red"></asp:Label>
                </td>
            </tr>
        </table>
    
        <br />
        <asp:GridView ID="GridView1" runat="server" AutoGenerateSelectButton="True" 
            BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" 
            CellPadding="3" onselectedindexchanging="GridView1_SelectedIndexChanging" 
            Width="1278px">
            <RowStyle ForeColor="#000066" />
            <FooterStyle BackColor="White" ForeColor="#000066" />
            <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
            <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
        </asp:GridView>
    
    </div>
    
    </form>
</body>
</html>
